﻿/*------------------------------------------------------------------
-- COPYRIGHT (C) 2010-2012  Atom
-- ALL RIGHTS RESERVED.
-- 兆尹科技
-- CREATE DATE: 2010/07/27
-- CREATE MAN:liujian	刘剑
-- 常量类
-- MODIFY HISTORY:
-- MODIFY DATE:
-- MODIFY MAN:	
-- MODIFY DESC:
-- MODIFY DATE:
-- MODIFY MAN:	
-- MODIFY DESC:
---------------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Atom.Common
{
    public class Constants
    {
        #region 全局常量

        /// <summary>
        /// Session中，错误信息的键值
        /// </summary>
        public static readonly string SESSION_ERROR_MESSAGE = "ERROR_MESSAGE";

        /// <summary>
        /// Session中，异常信息的键值
        /// </summary>
        public static readonly string SESSION_ERROR_EXCEPTION = "ERROR_EXCEPTION";

        /// <summary>
        /// Session中，转向强行修改密码界面信息键值
        /// </summary>
        public static readonly string SESSION_FORCE_MODIFY_PASSWORD_MSG = "FORCE_MODIFY_PASSWORD_MSG";

        /// <summary>
        /// 登录页面
        /// </summary>
        public static readonly string LOGON_PAGE = "~/Logon.aspx";

        /// <summary>
        /// 默认系统首页
        /// </summary>
        public static readonly string DefaultHomePage = "~/index.aspx";

        /// <summary>
        /// 页面默认标题
        /// </summary>
        public static readonly string PAGE_DEFAULT_TITLE = "无标题页";

        /// <summary>
        /// 显示"拒绝访问"信息的页面
        /// </summary>
        public static readonly string FORBIDDEN_PAGE = "~/AuthForbidden.aspx";

        /// <summary>
        /// 日志中，登录用户的信息
        /// </summary>
        /// <remarks>
        /// {0}为登录名称，{1}为显示名称
        /// </remarks>
        public static readonly string LOG_USER_INFO_FORMAT = "【登录用户{0}({1})】";

        /// <summary>
        /// 未记录数据库异常消息
        /// </summary>
        public static readonly string LOG_PREFIX_NONDB = "[未记录数据库异常]";

        /// <summary>
        /// 参数错误时的信息提示
        /// </summary>
        public static readonly string PAGE_DEFAULT_ERRORPARAMETER = "参数错误...";

        /// <summary>
        /// 未记录数据库异常消息
        /// </summary>
        public static string FOOTERHTML = "";
        /// <summary>
        /// 未读消息数
        /// </summary>
        public static Int32 TMsgCount = 0;


        #region 网站的访问方式 
        
        //0可以使用 1不能使用
        public static  string AccessFromWeb = "AccessFromWeb";

        /// <summary>
        /// 仅通过程序调用
        /// </summary>
        public static readonly string AccessOnlyApp_Yes = "0";

        /// <summary>
        /// 可通过web调用
        /// </summary>
        public static readonly string AccessOnlyApp_No = "1";

        #endregion

        #endregion

        #region 收费标志
        /// <summary>
        /// 免费
        /// </summary>
        public static readonly int FreeYN_Yes = 1;
        /// <summary>
        /// 收费
        /// </summary>
        public static readonly int FreeYN_no = 0;

        #endregion

        #region 审核状态

        /// <summary>
        /// 未审核
        /// </summary>
        public static readonly int Status_None = 0;
        /// <summary>
        /// 已审核
        /// </summary>
        public static readonly int Status_Pass = 1;
        /// <summary>
        /// 已禁用
        /// </summary>
        public static readonly int Status_Forbit = 2;

        #endregion

        #region 页面参数表

        //首页
        public static readonly string Page_Default = "Z000";
        //我的资产
        public static readonly string Page_FinanceProperty = "A000";

        //我的自选
        public static readonly string Page_FinanceChoose= "B000";
        //投资日历
        public static readonly string Page_InvestCalendar = "D000";
        //我的关注
        public static readonly string Page_Concern = "C000";
        //理财顾问
        public static readonly string Page_InvestConsultant = "G000";
        //用户反馈 (由原来的理财方案改过来的)
        public static readonly string Page_StyleAssessment = "E000";
        //理财工具
        public static readonly string Page_Tools = "H000";
        //互动社区
        public static readonly string Page_Community = "F000";

        //服务平台
        public static readonly string Page_FinanceService = "I000";

        #endregion

        #region 首页

        /// <summary>
        /// 首页的默认控件位置
        /// </summary>
        public static readonly string UserTableControl = "2,3,1,4,:5,6,";

        /// <summary>
        /// 积分规则编码
        /// </summary>
        public static readonly string TCode = "Money";


        /// <summary>
        /// 消息类型
        /// </summary>
        public static readonly string MessageType = "XXLX";

        #endregion

        #region 删除标识
        //删除标识
        public static readonly string FIRSTCODE_DELETEFALG = "DelFalg";
        //删除
        public static readonly string DELETEFALG_YES = "1";
        //未删除
        public static readonly string DELETEFALG_NO = "0";
        #endregion

        #region 理财类型
        //0:债券；1:理财；2:基金；3:股票
        /// <summary>
        /// 3:股票
        /// </summary>
        public static readonly int StockTypeCode = 3;
        /// <summary>
        /// 2:基金
        /// </summary>
        public static readonly int FundTypeCode = 2;
        /// <summary>
        /// 0:债券
        /// </summary>
        public static readonly int BondTypeCode = 0;
        /// <summary>
        /// 1:理财产品
        /// </summary>
        public static readonly int PDMTypeCode = 1;

        /// <summary>
        /// 凭证式国债
        /// </summary>
        public static readonly string CerBondInfo = "凭证式国债";

        #region 交易所类型
        /// <summary>
        /// 上海交易所
        /// </summary>
        public static readonly string Exchange_SH = "1";

        /// <summary>
        /// 深圳交易所
        /// </summary>
        public static readonly string Exchange_SZ = "2";


        #endregion
        #endregion

        /// <summary>
        /// 系统参数配置表中多参数值之间的分割符
        /// </summary>
        public static readonly char ParameterSplitChar = ',';


        #region 我的资产
        /// <summary>
        /// 认申购方式
        /// </summary>
        public static readonly string PURTYPE = "PURTYPE";

        /// <summary>
        /// 费用类型
        /// </summary>
        public static readonly string FEETYPE = "FEETYPE";

        /// <summary>
        /// 数量最大值
        /// </summary>
        public static readonly double MaxLeght = 9999999999d;  

        #endregion

        #region 我的关注

        public static readonly string ConcernCancel = "取消关注";
        public static readonly string ConcernAdd = "添加关注";

        public static readonly int TOP_5 = 5;

        //定义我的模块ID 供反馈表中分类
        public static readonly string ConcernModuleId = "0001";

        #region 基金类型

        //开放式
        public static readonly string NavOpen = "0001";

        //封闭式
        public static readonly string NavClose = "0002";

        //货币式
        public static readonly string NavMoneyMarket = "0003";

        #endregion

        #region 债券类型

        //记账式
        public static readonly string Bond_SEC = "0001";

        //凭证式
        public static readonly string Bond_CER = "0002";

        //电子式
        public static readonly string Bond_SAV = "0003";

        #endregion

        #endregion

        #region 投资日历
        //大事记
        public   const string InvestType_Event = "0";
        //大事记日程显示样式
        public static readonly string InvestType_EventStyle = "";
        //投资行为
        public   const string InvestType_Invest = "1";
        //投资行为日程显示样式
        public static readonly string InvestType_InvestStyle = "1";

        //到期提醒
        public   const string InvestType_Due = "2";
        //到期提醒日程显示样式
        public static readonly string InvestType_DueStyle = "2";
        //自定义
        //自定义日程显示样式
        public   const string InvestType_Custom = "3";
        public static readonly string InvestType_CustomStyle = "3";

        #endregion

        #region 理财顾问
        /// <summary>
        /// 模糊明细--总投资金额
        /// </summary>
        public static readonly string Money = "ZCHZHE";

        /// <summary>
        /// 处理类型
        /// </summary>
        public static readonly string CLLX = "CLLX";

        /// <summary>
        /// 组ID
        /// </summary>
        public static readonly string PID = "-1";
        public static readonly string GID = "-2";

        /// <summary>
        /// 待处理
        /// </summary>
        public static readonly int Dis = 3;

        /// <summary>
        /// 未处理
        /// </summary>
        public static readonly int No = 0;

        /// <summary>
        /// 已处理
        /// </summary>
        public static readonly int Yes = 2;

        /// <summary>
        /// 订阅积分设置参数
        /// </summary>
        public static readonly string PramValue = "4";

        #endregion

        #region 社区服务
        /// <summary>
        /// 债券
        /// </summary>
        public static readonly string Bond = "债券";
        /// <summary>
        /// 理财产品
        /// </summary>
        public static readonly string PDM = "理财产品";
        /// <summary>
        /// 基金
        /// </summary>
        public static readonly string Fund = "基金";
        /// <summary>
        /// 股票
        /// </summary>
        public static readonly string Stock = "股票";   
        /// <summary>
        /// 社区服务
        /// </summary>
        public static readonly string SQFW = "SQFW";

        /// <summary>
        /// 数量最大值
        /// </summary>
        public static readonly int MaxValue = 2147483647;

        /// <summary>
        /// 积分管理
        /// </summary>
        public static readonly string TitieJF = "HTJJF";

        #endregion

        /// <summary>
        /// 投票选项之间的分割符
        /// </summary>
        public static readonly char VoteOptionSplitChar = ',';

        /// <summary>
        /// 投票2，投票选项
        /// </summary>
        public static readonly string voteUp = "上涨,下跌,看平";

        /// <summary>
        /// 股票涨跌幅前多少位
        /// </summary>
        public static readonly int TopUpDownStockNum = 15;

        #region 个人可投资的债券大类
        /*
            1.交易所债券
            2.银行柜台记账式国债
            3.不可交易的国债
         */
        /// <summary>
        /// 交易所债券:1
        /// </summary>
        public static readonly string PersonalInvestBondTypeInMarket = "交易所债券";
        /// <summary>
        /// 1:交易所债券
        /// </summary>
        public static readonly string PersonalInvestBondTypeInMarketCode = "1";

        /// <summary>
        /// 银行柜台记账式国债:2
        /// </summary>
        public static readonly string PersonalInvestBondTypeInBank = "银行柜台记账式国债";
        /// <summary>
        /// 2:银行柜台记账式国债
        /// </summary>
        public static readonly string PersonalInvestBondTypeInBankCode = "2";

        /// <summary>
        /// 不可交易的国债:3
        /// </summary>
        public static readonly string PersonalInvestBondTypeNotTransation = "不可交易的国债";
        /// <summary>
        /// 3:不可交易的国债
        /// </summary>
        public static readonly string PersonalInvestBondTypeNotTransationCode = "3";

        #endregion

        #region 理财服务

        /// <summary>
        /// 投票ID
        /// </summary>
        public static readonly string ATMVoteID = "1,2,3";

        /// <summary>
        /// 投票名称
        /// </summary>
        public static readonly string ATMVoteName = "好,坏,一般";

        #endregion

        #region 系统参数表常量 
        /// <summary>
        /// 债券类型
        /// 0:国债-记帐式	
        /// 5:国债-凭证式 
        /// 10:国债-电子式
        /// </summary>
        public static readonly string PARAM_ABONDTYPE = "ABONDTYPE";

        /// <summary>
        /// 债券币种
        /// </summary>
        public static readonly string PARAM_CURRENCY = "0_2683_2687_";

        /// <summary>
        /// 币种（用于理财产品）
        /// </summary>
        public static readonly string PARAM_CurrencyType = "0_18_";

        /// <summary>
        /// 付息方式
        /// 0：到期支付
        /// 3：每季度
        /// 6：每半年
        /// 7：每年
        /// </summary>
        public static readonly string PARAM_PAYMENT_METHOD = "0_2683_2912_";

        /// <summary>
        /// 页面展示是Null时，以--代替现实
        /// </summary>
        public static readonly string PARAM_NULL_STR = "--";

        /// <summary>
        /// 用户注册--教育程度
        /// </summary>
        public static readonly string RegUserEdu = "UREGEDU";

        /// <summary>
        /// 用户注册--投资年龄
        /// </summary>
        public static readonly string RegUserInvestEdu = "UREGINVESTAGE";
        /// <summary>
        /// 用户注册--年龄
        /// </summary>
        public static readonly string RegUserAge = "UREGAGE";
        /// <summary>
        /// 用户注册--用户常用帐户所属行
        /// </summary>
        public static readonly string RegUserBank = "UREGBANK";
        /// <summary>
        /// 用户注册--用户关注的模块
        /// </summary>
        public static readonly string RegUserConcern = "UREGCONCERN";
        /// <summary>
        /// 用户注册--用户从事行业
        /// </summary>
        public static readonly string RegUserTrade = "UREGTRADE";
        

        /// <summary>
        /// 自定义关注模块类型
        /// </summary>
        public static readonly string ConcernCustomType = "GZMKLX";

        /// <summary>
        /// 用户注册时候，赠送的积分数量  ,属于积分模块
        /// </summary>
        public static readonly string SendCentMoneyByRegUser = "2";
        
        /// <summary>
        /// 当用户完善自身资料时候，系统赠送的积分数量，属于积分模块
        /// </summary>
        public static readonly string SendCentMoneyByOverUserInfo = "3";

        #endregion

        #region 我的自选部分，理财，股票，基金，债券的材料介绍
        /// <summary>
        /// 我的自选债券介绍
        /// </summary>
        public static readonly string BondIntroduction = "BondIntro";
        /// <summary>
        /// 我的自选股票介绍
        /// </summary>
        public static readonly string StockIntroduction = "StockIntro";
        /// <summary>
        /// 我的自选基金介绍
        /// </summary>
        public static readonly string FundIntroduction = "FundIntro";
        /// <summary>
        /// 我的自选理财产品介绍
        /// </summary>
        public static readonly string PDMIntroduction = "PDMIntro";

        #endregion

        #region 关于我们页面
        /// <summary>
        /// 关于兆尹
        /// </summary>
        public static readonly string AboutCorp = "AboutCorp";
        /// <summary>
        /// 版权说明
        /// </summary>
        public static readonly string Copyright = "Copyright";
        /// <summary>
        /// 帮助中心
        /// </summary>
        public static readonly string Help = "Help";
        /// <summary>
        /// 联系我们
        /// </summary>
        public static readonly string LinkUs = "LinkUs";

        #endregion
    }
}
